<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:70:"/www/wwwroot/xxm.com/public/../project/app/admin/view/index/index.html";i:1557974877;s:74:"/www/wwwroot/xxm.com/public/../project/app/admin/view/layout_menu_one.html";i:1557974875;}*/ ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta http-equiv="Cache-Control" content="max-age=2592000" />
    <title><?php echo config('website_title'); ?></title>
    <link href="__STATIC__/favicon.ico" rel="shortcut icon">
    <link href="__STATIC__/admin/css/base.css" rel="stylesheet">
    <link href="__STATIC__/admin/css/index.css" rel="stylesheet" />
    <link href="__STATIC__/admin/css/system.css" rel="stylesheet" />
    <script type="text/javascript" src="__STATIC__/common/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="__STATIC__/common/jquery.validate.js"></script>
    <script type="text/javascript" src="__STATIC__/common/jquery.metadata.js"></script>
    <script type='text/javascript' src="__STATIC__/common/jquery.resizableColumns.js"></script>
    <script type="text/javascript" src="__STATIC__/common/plugins/layer/layer.min.js"></script>
    <script type="text/javascript" src="__STATIC__/admin/js/common.js"></script>
    <script type="text/javascript" src="__STATIC__/common/json2.js"></script>
    <script type="text/javascript">var json = JSON.parse('<?php echo \think\Config::get('json'); ?>');</script>
</head>
<body>
    <div class="warp tree">
        <div class="head-content">
            <!-- 页面head -->
            <div class="head">
                <div class="user-logo" style="color: #fff;font-size: 30px;width:500px;font-family:Arial,Helvetica,sans-serif;"><?php echo config('website_title'); ?></div>
                <div class="user-info">
                    <p>
                        欢迎[<font color="red"><?php echo get_login_admin_role_name(); ?></font>]<a href="<?php echo Url('admin/admin_info'); ?>"><?php echo get_login_admin_user(); ?></a>的到来 |
                        <a href="<?php echo Url('system/clear_cache_all'); ?>">清除缓存</a> |
                        <a href="<?php echo Url('login/logout'); ?>">退出</a>
                    </p>
                    <p><span>版本：1.0.0</span><span>最后登录IP：<?php echo get_client_ip(); ?></span></p>
                </div>
            </div>

            <!-- 一级菜单 -->
            <div class="nav-box">
                <ul class="nav" id="_menu_one">
                    <?php if(is_array(\think\Config::get('menu.menu')[1]) || \think\Config::get('menu.menu')[1] instanceof \think\Collection || \think\Config::get('menu.menu')[1] instanceof \think\Paginator): if( count(\think\Config::get('menu.menu')[1])==0 ) : echo "" ;else: foreach(\think\Config::get('menu.menu')[1] as $key=>$menu_one): if(($menu_one['menu_id'] == \think\Config::get('menu.current')[1])): ?>
                            <li class="cur"><a href="<?php echo Url($menu_one['action']); ?>"><span><?php echo $menu_one['name']; ?></span></a></li>
                        <?php else: ?>
                            <li><a href="<?php echo Url($menu_one['action']); ?>"><span><?php echo $menu_one['name']; ?></span></a></li>
                        <?php endif; endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </div>

            <!-- 内容页面 -->
            <div class="container">
                <!--加载js-->
<script src="/static/common/plugins/Charts/amcharts.js" type="text/javascript"></script>

<!--主页面-->
<div class="side-left fl mt10">
    <div class="box">
        <h2>个人信息</h2>
        <ul class="status">
            <li class="risk first-child">
                <p>
                    <i class="img"></i>
                    <strong><?php echo get_login_phone(); ?></strong><br><span class="gray">账号：<?php echo $admin_info['admin_phone']; ?><br>电话：<?php echo $admin_info['admin_phone']; ?></span>
                </p>
                <a class="status-btn exam"  style="" href="<?php echo Url('admin/admin_info'); ?>">完善信息</a>
            </li>
            <li style="font-size: 11px"><p><span class="fl">最后登录数据：<?php echo $admin_info['login_time']; ?></span><span class="fr">最后登录IP：<?php echo $admin_info['login_ip']; ?></span></p></li>
        </ul>
    </div>
    <div class="box">
        <h2>主要功能快捷入口</h2>
        <div class="clear_fix">
            <ul class="entrance">
                <li style="height: 32px;">
                    <a href="<?php echo Url('/admin/pool_bid/pool_bid_agent_list'); ?>"><img src="/static/admin/img/dp_icon2.gif" class="fl" style="width: 35px;height: 30px;"></a>
                    <a class="txt" href="<?php echo Url('/admin/pool_bid/pool_bid_agent_list'); ?>">
                        <h2>客户贷款通申请</h2>
                    </a>
                </li>
                <li style="height: 32px;">
                    <a href="<?php echo Url('/admin/pool_bid/pool_bid_not_list'); ?>"><img src="/static/admin/img/icon16.png" class="fl" style="width: 35px;height: 30px;"></a>
                    <a class="txt" href="<?php echo Url('/admin/pool_bid/pool_bid_not_list'); ?>">
                        <h2>合作商招投标客户池</h2>
                    </a>
                </li>
                <li style="height: 32px;">
                    <a href="<?php echo Url('/admin/user/user_list'); ?>"><img src="/static/admin/img/sp_icon3.gif" class="fl" style="width: 35px;height: 30px;"></a>
                    <a class="txt" href="<?php echo Url('/admin/user/user_list'); ?>">
                        <h2>用户管理</h2>
                    </a>
                </li>
                <li style="height: 32px;">
                    <a href="<?php echo Url('/admin/cooperate/cooperate_list'); ?>"><img src="/static/admin/img/qd_icon1.gif" class="fl" style="width: 35px;height: 30px;"></a>
                    <a class="txt" href="<?php echo Url('/admin/cooperate/cooperate_list'); ?>">
                        <h2>合作商管理</h2>
                    </a>
                </li>
                <li style="height: 32px;">
                    <a href="<?php echo Url('/admin/agent/agent_list'); ?>"><img src="/static/admin/img/oa_icon4.gif" class="fl" style="width: 35px;height: 30px;"></a>
                    <a class="txt" href="<?php echo Url('/admin/agent/agent_list'); ?>">
                        <h2>信贷经理管理</h2>
                    </a>
                </li>
            </ul>
        </div>
    </div>


    <div class="box">
        <h2>省份客户数量排名</h2>
        <div class="clear_fix">
            <ul class="show_total">
                <?php if(is_array($province) || $province instanceof \think\Collection || $province instanceof \think\Paginator): if( count($province)==0 ) : echo "" ;else: foreach($province as $key=>$info): ?>
                    <li class="fl">
                        <img src="/static/admin/img/1.jpg" class="fl">
                        <h2 style="font-size:14px; border:none; padding:0;"><?php echo $info['name']; ?>：<i class="orange"><?php echo $info['num']; ?></i></h2>
                    </li>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
    </div>
</div>



<div class="side-m fl mt10">
    <div class="box2">
        <h2>客户注册量柱形图<font color="red">&nbsp;&nbsp;&nbsp;&nbsp;<b>一个月的客户注册量</b></font></h2>
        <div class="item_chart">
            <div class="item_total">
                <ul>

                </ul>
                <div class="clear_fix"></div>
            </div>
            <div id="user_customer" style="height:300px;"></div>

            <script type="text/javascript">
                var chart;
                AmCharts.ready(function () {
                    chart = new AmCharts.AmSerialChart();
                    chart.dataProvider = json['user_customer'];
                    chart.categoryField = "create_time";
                    chart.startDuration = 1;


                    //xy轴
                    var valueAxis = new AmCharts.ValueAxis();
                    valueAxis.axisColor="#777";
                    valueAxis.axisThickness=1;
                    valueAxis.title='客户数量';
                    chart.addValueAxis(valueAxis);

                    var categoryAxis = chart.categoryAxis;
                    // categoryAxis.labelRotation =45 ;//X轴下面值的角度

                    var graph = new AmCharts.AmGraph();
                    graph.valueField = "num";//柱形图显示的值
                    // graph.balloonText = "[[name]]: [[num]]";//鼠标放上所显示的
                    graph.type = "column";//Y轴的类型 有line、column、step、smoothedLine、candlestick、ohlc
                    graph.lineAlpha = 0;//border透明度
                    graph.fillAlphas = 0.8;//柱子的透明度
                    chart.addGraph(graph);

                    chart.write("user_customer");
                });
            </script>
        </div>
    </div>

    <div class="box2">
        <h2>合作商开标数量柱形图<font color="red">&nbsp;&nbsp;&nbsp;&nbsp;<b>一个月的发标数量</b></font></h2>
        <div class="item_chart">
            <div class="item_total">
                <ul>

                </ul>
                <div class="clear_fix"></div>
            </div>
            <div id="pool_bid_customer" style="height:300px;"></div>

            <script type="text/javascript">
                var chart;
                AmCharts.ready(function () {
                    chart = new AmCharts.AmSerialChart();
                    chart.dataProvider = json['pool_bid_customer'];
                    chart.categoryField = "create_time";
                    chart.startDuration = 1;


                    //xy轴
                    var valueAxis = new AmCharts.ValueAxis();
                    valueAxis.axisColor="#777";
                    valueAxis.axisThickness=1;
                    valueAxis.title='发标数量';
                    chart.addValueAxis(valueAxis);

                    var categoryAxis = chart.categoryAxis;
                    // categoryAxis.labelRotation =45 ;//X轴下面值的角度

                    var graph = new AmCharts.AmGraph();
                    graph.valueField = "num";//柱形图显示的值
                    // graph.balloonText = "[[name]]: [[num]]";//鼠标放上所显示的
                    graph.type = "column";//Y轴的类型 有line、column、step、smoothedLine、candlestick、ohlc
                    graph.lineAlpha = 0;//border透明度
                    graph.fillAlphas = 0.8;//柱子的透明度
                    chart.addGraph(graph);

                    chart.write("pool_bid_customer");
                });
            </script>
        </div>
    </div>

    <div class="box2">
        <h2>客户申请走势图<font color="red">&nbsp;&nbsp;&nbsp;&nbsp;<b>一个月的申请量</b></font></h2>
        <div class="item_chart">
            <div class="item_total">
                <ul>
                    <?php if(is_array($company) || $company instanceof \think\Collection || $company instanceof \think\Paginator): if( count($company)==0 ) : echo "" ;else: foreach($company as $key=>$info): ?>
                    <li><h3><?php echo $info["name"]; ?></h3><h4><?php echo number_format($info['num'],0); ?></h4></li>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
                <div class="clear_fix"></div>
            </div>
            <div id="user_apply" style="width:99%; height:300px;"></div>

            <script type="text/javascript">
                var chart;

                AmCharts.ready(function () {
                    chart = new AmCharts.AmSerialChart();
                    chart.dataProvider = json['user_apply'];
                    chart.categoryField = "date_time";

                    var categoryAxis = chart.categoryAxis;
                    categoryAxis.dashLength = 2;
                    categoryAxis.gridAlpha = 0.15;
                    categoryAxis.axisColor = "#DADADA";

                    var valueAxis1 = new AmCharts.ValueAxis();
                    valueAxis1.axisColor = "#FF0F00";
                    valueAxis1.axisThickness = 2;
                    valueAxis1.gridAlpha = 0;
                    chart.addValueAxis(valueAxis1);

                    var valueAxis2 = new AmCharts.ValueAxis();
                    valueAxis2.position = "right";
                    valueAxis2.axisColor = "#FF6600";
                    valueAxis2.gridAlpha = 0;
                    valueAxis2.axisThickness = 2;
                    chart.addValueAxis(valueAxis2);

                    var graph1 = new AmCharts.AmGraph();
                    graph1.valueAxis = valueAxis1;
                    graph1.title = "申请贷款数量";
                    graph1.valueField = "loan_num";
                    graph1.bullet = "round";
                    graph1.hideBulletsCount = 30;
                    chart.addGraph(graph1);

                    var graph2 = new AmCharts.AmGraph();
                    graph2.valueAxis = valueAxis2;
                    graph2.title = "申请信用卡数量";
                    graph2.valueField = "credit_num";
                    graph2.bullet = "round";
                    graph2.hideBulletsCount = 30;
                    chart.addGraph(graph2);

                    var chartCursor = new AmCharts.ChartCursor();
                    chartCursor.cursorPosition = "mouse";
                    chart.addChartCursor(chartCursor);

                    var legend = new AmCharts.AmLegend();
                    legend.marginLeft = 110;
                    chart.addLegend(legend);

                    chart.write("user_apply");
                });
            </script>
        </div>
    </div>
</div>

            </div>
        </div>
    </div>
    <div class="footer_gp">
        <p>厦门酷融信息科技有限公司版权所有 © Copyright 2014-2017 	闽ICP备18006609号-1</p>
    </div>
</body>
<!-- JS处理 -->
<script language="javascript">
    $(function(){
        //修改列表宽度
        $("div.lists-table table").resizableColumns(function(){});

        //重写alert
        window.alert = layer.alert;
    });
</script>
</html>